<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="checkbox" name="fruit" value="苹果">苹果
    <input type="checkbox" name="fruit" value="香蕉">香蕉
    <input type="checkbox" name="fruit" value="西瓜">西瓜
    <p></p>
    <input type="radio" name="test" value="男1">A
    <input type="radio" name="test" value="女1">B
    <input type="radio" name="test" value="女2">C
    <input type="radio" name="test" value="男2">D

</body>
</html>
<script>
    // var fruits=document.getElementsByName("fruit")
    var fruits = document.querySelectorAll("input[type=checkbox]")
    var tests = document.querySelectorAll("input[name=test][type=radialGradient] input")
    console.log(fruits);
    console.log(tests);
    document.title="input"
</script>